package cn.org.xuanguang.kepler.hormos.rdb.dml.operator;

import cn.org.xuanguang.kepler.hormos.rdb.dsl.param.Term;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.LinkedList;
import java.util.List;

/**
 * 抽象出来，便于加载策略
 *
 * @param <T>
 * @author jarod
 * @date 2024-05-15
 * @since 1.0
 */
@Data
@EqualsAndHashCode(callSuper=false)
public class AbstractOperatorParameter<T> implements OperatorParameter<T> {


    /**
     * table_name
     */
    private String tableName;
    /**
     * 策略
     *
     * @Getter
     * @Setter private IPolicy policy;
     * <p>
     * /**
     * WHERE condition;
     */
    List<Term> terms = new LinkedList<>();

    public void execute() {
        //这里做些额外处置
    }

}
